package com.lagou.bean;

import com.lagou.service.HelloService;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Component
public class ConsumerComponent {

    @Reference
    private HelloService helloService;

    public String sayHelloA() {
        String res = helloService.sayHelloA();
        return res;
    }

    public String sayHelloB() {
        String res = helloService.sayHelloB();
        return res;
    }

    public String sayHelloC() {
        String res = helloService.sayHelloC();
        return res;
    }
}
